import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Login from '@/components/login'
import Main from '@/components/main'
import One from '@/components/one/one'
import Two from '@/components/two/Two'
import Three from '@/components/three/Three'
import Four from '@/components/four/four'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
    	path:'/main',
    	name:'main',
    	component:Main,
    	children:[
    	{
    		path:'/one',
    		name:'one',
    		component:One
    	},{
    		path:'/two',
    		name:'two',
    		component:Two
    	},{
    		path:'/three',
    		name:'three',
    		component:Three
    	},{
    		path:'/four',
    		name:'four',
    		component:Four
    	}]
    },
    {
      path: '*',
      component: Login
    },
  ]
})
